package cn.hdu.charge.domain;

import java.math.BigDecimal;

/**
 * 用户模块实体类
 */
/*
 * 属性哪里来
 * 1. user表：因为我们需要把user表查询出的数据封装到User对象中
 * 2. 该模块所有表单：因为我们需要把表单数据封装到User对象中
 */
public class User {
    private String userId;
    private String mobile;
    private String password;
    private BigDecimal balance;

    //修改密码表单
    private String newPassword;//新密码

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", mobile='" + mobile + '\'' +
                ", password='" + password + '\'' +
                ", balance=" + balance +
                ", newPassword='" + newPassword + '\'' +
                '}';
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }
}
